<form class="form-inline" role="form" #f="ngForm">
  <div class="form-group" >
    <label  class="input-xs" for="branch">分公司</label>
    <select name="branch" id="branch" class="form-control input-sm"
            [(ngModel)]="selectBranch"
            (change)="branchChange(selectBranch)"
    >
      <option *ngFor="let branch of branches" [ngValue]='branch'>
        {{branch.name}}
      </option>
    </select>
  </div>
  <!--<p>Form value: {{ f.value | json }}</p>-->
  <div class="form-group">
    <label class="input-xs" for="station">风电场</label>
    <select name="station" id="station" class="form-control input-sm"
            [(ngModel)]="selectStation"
            (change)="stationChange(selectStation)"
    >
      <option *ngFor="let station of stations" [ngValue]='station'>
        {{station.name}}
      </option>
    </select>
  </div>
  <div class="form-group" *ngIf="ifDevice">
    <label for="equipment">风机</label>
    <select name="equipment" id="equipment" class="form-control input-sm"
            [(ngModel)]="selectSet"
            (change)="setChange(selectSet)"
    >
      <option *ngFor="let set of sets" [ngValue]='set'>
        #{{set.wtcode}}风机
      </option>
    </select>
  </div>
</form>

